package com.disapand.strongarmy

import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import java.sql.SQLException
import javax.sql.DataSource

@SpringBootTest
class StrongArmyApplicationTests {

    @Autowired
    lateinit var dataSource: DataSource

    @Test
    fun contextLoads() {
        println(dataSource.javaClass)
        try {
            val connection = dataSource.connection
            println(connection)
            connection.close()
        } catch (e: SQLException) {
            e.printStackTrace()
        }
    }

}
